﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyCommon
{
    /// <summary>
    /// 元组，Framework4.0中已包含此类
    /// </summary>
    static class Tuple
    {
        public static Tuple<T1, T2> Create<T1, T2>(T1 item1, T2 item2)
        {
            return new Tuple<T1, T2>(item1, item2);
        }
    }
    /// <summary>
    /// 元组，Framework4.0中已包含此类
    /// </summary>
    /// <typeparam name="T1"></typeparam>
    /// <typeparam name="T2"></typeparam>
    [Serializable]
    class Tuple<T1, T2>
    {
        public Tuple(T1 item1, T2 item2)
        {
            Item1 = item1;
            Item2 = item2;
        }
        public T1 Item1 { get; private set; }
        public T2 Item2 { get; private set; }
    }
}
